# New ASM File
haz_combat_menu:
.asciiz "\nWhat would you like to do?\n1. Stall\n2. Bubble\n3. Forward\n4. nop"
haz_attackone:
.asciiz "\nThe enemy is stalled. It wastes its turn."		
haz_attacktwo:
.asciiz "\nYou protect yourself against your enemies next move."		
haz_attackthree:
.asciiz "\nYou hurl an instruction with all your might at the enemy, causing heavy damage."		
haz_attackfour:
.asciiz "\nnop"

haz_hitchance_three:
.word 0x00000001
haz_basedamage_three:
.word 0x00000001
	
haz_combat_select:
	li $a0, haz_combat_menu
	jal libplp_uart_write_string
	nop
	jal libplp_uart_read
	nop
	move $t0, $v0
	li $t1, 0x00000031
	beq $t0, $t1, haz_attack_one
	nop
	li $t1, 0x00000032
	beq $t0, $t1, haz_attack_two
	nop
	li $t1, 0x00000033
	beq $t0, $t1, haz_attack_three
	nop
	li $t1, 0x00000034
	beq $t0, $t1, haz_attack_four
	nop
	# idiot didnt enter 1-4, do it again
	j haz_combat_select
	nop
haz_attack_one:
	li $a0, haz_attackone
	jal libplp_uart_write_string
	nop
	# load specific attack values
	j haz_combat_select
	nop
haz_attack_two:
	li $a0, haz_attacktwo
	jal libplp_uart_write_string
	nop
	# load specific attack values
	j haz_combat_select
	nop
haz_attack_three:
	li $a0, haz_attackthree
	jal libplp_uart_write_string
	nop
	# load specific attack values
	li $t4, haz_hitchance_three
	lw $s4, 0($t4)
	li $t4, haz_basedamage_three
	lw $s3, 0($t4)
	j player_hit
	nop
haz_attack_four:
	li $a0, haz_attackfour
	jal libplp_uart_write_string
	nop
	# YOU USED NOP!!
	nop
	j enemy_hit
	nop